public class VarArgsOverloading3 {
    static void f(float i, Character... args) {
        System.out.println("float i, Character... args, i = " + i);
        for (char c : args) {
            System.out.print(c + " ");
        }
        System.out.println();
    }

    static void f(char c, Character... args) {
        System.out.println("char c, Character... args , c = " + c);
        for (Character ch : args) {
            System.out.print(ch + " ");
        }
        System.out.println();
    }

    public static void main(String[] args) {
        f('a');
        f('a', 'b');
        f(1, 'a');
        f(1.0f, 'a');
    }
}
